Add stacktrace option to test runner output #471
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What has Changed?
outputStackTraceOnTest
to enable outputting stacktraceDetails
This is still WIP, but here's my first pass at adding stacktrace to the test runner output. This prints stacktraces in the output pane for each test that had an error.
This uses cider's
test-stacktrace
command, which has been added toNReplSession
. This works by requesting the stacktrace for each error individually, I'm not sure if there would be a performance hit if for example you run all tests and there are many errors. I believe that emacs gives only shows each stacktrace on demand if you want to see it.What I have so far accomplishes the primary goal of getting a stacktrace for a test error, but there is room for improvement on how the stacktrace is output. VS code's output window is a bit limited, and a lot of stacktraces could potentially overwhelm the output. It would be nice if sections of the output were collapsable. I've thought of a few alternate approaches:
Peek Problem
link, similar to how the test failures are already working. I haven't played with this yet, but I think it should be implemented anyway. It looks like it should be easy to add. Maybe this would allow for querying the stacktrace on demand instead of all at once. I need to read up on this.Output
Closes #424
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)master
. (Sorry for the nagging.)ci/circleci: build
test. (For now you'll need to opt in to the CircleCI New Experience UI to see the Artifacts tab, because bug.)[Unreleased]
entry inCHANGELOG.md
, linking the issue(s) that the PR is addressing.The Calva Team PR Checklist:
Before merging we (at least one of us) have:
dev
branch (unless reasons).Ping @PEZ, @kstehn, @cfehse